﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace _29_领域事件发布机制.Models
{
    public class lingyuConfig : IEntityTypeConfiguration<lingyu>
    {
        public void Configure(EntityTypeBuilder<lingyu> builder)
        {
            builder.ToTable("T_LingYu");
            builder.Property("passwordHash");
            builder.HasQueryFilter(u => !u.isDeleted);
        }
    }
}
